<!-- 游戏主体 -->
<template>
	<view class="gbbox">
		<view class="gbbox-prb bj_center" @click="re">
			<image src="/static/prev.png"></image>
		</view>
		<iframe :src="url" frameborder="0" class="w100 h100" style="overflow: hidden;"></iframe>
	</view>
</template>

<script setup>
	import {
		onLoad
	} from "@dcloudio/uni-app"
	import {
		ref
	} from "vue";
	let url = ref("")
	onLoad(function() {
		url.value = gu
	})
	
	function re(){
		uni.navigateBack()
	}
</script>

<style scoped lang="scss">
	/* PC端适配 */
	@media (min-width: 768px) {
		.gbbox {
			position: absolute !important;
			// left: calc(50vw - 375rpx) !important;
			width: 750rpx !important;
			/* 与主容器同宽 */
		}
	}
	.gbbox {
		height: 100vh;
		width: 100vw;
		position: relative;

		&-prb {
			width: 70rpx;
			height: 70rpx;
			position: absolute;
			border-radius: 100%;
			background: rgba(0, 0, 0, 0.5);
			top: 40rpx;
			left: 40rpx;

			image {
				width: 36rpx;
				height: 36rpx;
			}
		}
	}
</style>